﻿<%@ page language="java" import="java.util.*,net.skyedu.bean.*,net.skyedu.dao.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   <base href="<%=basePath %>">
    <title>申诉表单</title>
    <link href="<%=basePath %>attend/frame/images/skin.css" rel="stylesheet" type="text/css" />
	<link href="<%=basePath %>attend/css/tab.css" rel="stylesheet" type="text/css" />
	<script language="javascript" type="text/javascript" src="<%=basePath %>attend/js/tab.js"></script>
 	<script language="javascript">
	 	function trim(stringToTrim) {
			return stringToTrim.replace(/^\s+|\s+$/g,"");
		}
		function checkForm(){
			var areas=document.getElementById("area").value;
			if(areas==null || trim(areas)==""){
				alert("理由不能为空！");
				return false;
			}
			return true;
		}
	</script>
</head> 
  
  <body>
  <%
  	String attID=request.getParameter("attID");
  	String status=request.getParameter("status");
  	String currentPage=request.getParameter("currentPage");
  	int userId=Integer.parseInt(request.getParameter("ueId"));
  	UserInfoDao ud=new UserInfoDao();
  	UserInfo user=ud.getSSN(userId);
  	List<Shensu> sl=ud.List(userId,ud.findRole(userId));
  %>
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="<%=basePath %>attend/frame/images/mail_leftbg.gif"><img src="<%=basePath %>attend/frame/images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="<%=basePath %>attend/frame/images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">申诉表单</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="<%=basePath %>attend/frame/images/mail_rightbg.gif"><img src="<%=basePath %>attend/frame/images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="<%=basePath %>attend/frame/images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
<!--    内嵌代码 Start-->
 <form action="Appeals" name="appr" method="post" onSubmit="return checkForm();">
	<TABLE height="24" cellSpacing="1" cellPadding="6" width="850" align="center" bgColor="#D9EDC0" border="0">
	  <TBODY>
		  <TR>
			 <TD width="69%" bgColor="#D9EDC0"><font color="red">&nbsp;</font></TD>
		  </TR>
	  </TBODY>
	</TABLE>
    <TABLE cellSpacing="1" cellPadding="3" width="850" align="center" bgColor="#c0de98" border="0">
	  <TBODY>
	  <input name="appName" type="hidden" value="<%=user.getName() %>"/>
	  <input name="status" type="hidden" value="<%=status %>"/>
	  <input name="attId" type="hidden" value="<%=attID %>"/>
	  <input name="currentPage" type="hidden" value="<%=currentPage %>"/> 
	  <TR>
        <TD colspan="2" background="<%=basePath %>attend/images/tab_14.gif" height="24">申诉人：<%=user.getName() %></TD>
	  </TR>
	  <TR align="middle" bgColor="#ffffff">
			<TD width="24%" height="24" align="right">申诉对象：</TD>
		    <TD width="76%" align="left">
			    <select name="zhao" style= "width:150px" title="点击选择申诉对象！">  
	              <%for(Shensu su : sl){%>
	             	<option value="<%=su.getOaId() %>"><%=su.getSubDept() %>：<%=su.getuName() %></option>
	              <%}%>
	      		</select>
      		</TD>
	  </TR>
	  <TR align="middle" bgColor="#ffffff">
	  	  <TD width="24%" align="right">申诉理由：</TD>
		  <TD height="24" align="left">
		  	 <textarea name="area" id="area" rows="5" cols="50"></textarea>
	      </TD>
	  </TR>
	  <TR align="middle" bgColor="#ffffff">
			<TD height="24" colspan="2"><input type="submit" value="提 交"></TD>
	  </TR>
	 </TBODY>
	</TABLE>
	<TABLE height="24" cellSpacing="1" cellPadding="6" width="850" align="center" bgColor="#D9EDC0" border="0">
	 <TBODY>
		<TR><TD width="69%" bgColor="#D9EDC0">&nbsp;</TD></TR>
	 </TBODY>
	</TABLE>
	</form>
<!--内嵌代码 end-->
	</td>
    <td background="<%=basePath %>attend/frame/images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="/frame/images/mail_leftbg.gif"><img src="<%=basePath %>attend/frame/images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="<%=basePath %>attend/frame/images/buttom_bgs.gif"><img src="<%=basePath %>attend/frame/images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="/frame/images/mail_rightbg.gif"><img src="<%=basePath %>attend/frame/images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
  </body>
</html>
